package com.revenant.driver.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.revenant.driver.R;
import com.revenant.driver.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class NewSecondImproveDriverInformationActivity extends BaseActivity {
    @BindView(R.id.personal_authentication)
    TextView personalAuthentication;
    @BindView(R.id.enterprise_authentication)
    TextView enterpriseAuthentication;

    @Override
    public int getContentViewResId() {
        return R.layout.activity_new_second_improve_driver_info;
    }

    @Override
    public void initView() {
        setcenterTitle("完善货主信息");

    }

    @Override
    public void leftbarclick() {
        super.leftbarclick();
        finish();
    }

    @Override
    public void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.personal_authentication, R.id.enterprise_authentication})
    public void onViewClicked(View view) {
        switch (view.getId()) {


            /*
             * 认证信息类型，0是个人，1是企业
             * */
            case R.id.personal_authentication:
                Bundle bundlea = new Bundle();
                bundlea.putString("upload_type_info", "0");
                startActivity(UploadCertificatePhotoActivity.class, bundlea);
                break;
            case R.id.enterprise_authentication:
                Bundle bundleb= new Bundle();
                bundleb = new Bundle();
                bundleb.putString("upload_type_info", "1");
                startActivity(UploadCertificatePhotoActivity.class, bundleb);
                break;
        }
    }
}
